﻿@model NigiriClub.WebUI.Models.Game


@using (Html.BeginForm("UploadSgf", "Games", FormMethod.Post,
    new { enctype = "multipart/form-data" }))
{ 
    @Html.AntiForgeryToken()
    <fieldset>
        <legend>Загрузить партию</legend>
        <div class="form-group">
            <label class="col-lg-2 control-label">Черные</label>
            <div class="col-lg-10">
                @Html.TextBoxFor(m => m.BlackName, new { @class = "form-control", @required = "true" })
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg-2 control-label">Белые</label>
            <div class="col-lg-10">
                @Html.TextBoxFor(m => m.WhiteName, new { @class = "form-control", @required = "true" })
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg-2 control-label">Средний уровень</label>
            <div class="col-lg-10">
                @Html.TextBoxFor(m => m.Level, new { @class = "form-control", @required = "true", @pattern="\\d{1,4}" })
            </div>
        </div>
        <span class="input-group">
            <span class="input-group-btn">
                <span class="file-input btn btn-primary btn-file btn-xs">Выбрать партию
    @Html.TextBoxFor(model => model.File.file, new { type = "file", accept = ".sgf", @required = "true" })
                </span>
            </span>
            <input type="text" class="form-control" readonly>
        </span>
        @Html.HiddenFor(m => m.IsReviewed)

        <button type="submit" class="btn btn-primary btn-xs">Загрузить</button>
    </fieldset>
}
